#include<iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;

	static int a = 1;
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < n-i; j++)
		{
			printf("%02d",a++);
		}
		cout << endl;
	}
	return 0;
}